public class Sjarray {

    public static int search(int num){
        int [] arr ={11,10,8,9,4,22,55,6,6,7,0};
        for (int i=0;i<arr.length;i++){
            if (num==arr[i])return i;
        }
        return -1;
    }

    public  static void main(String[] args){
        System.out.println("HelloWorld!");
        System.out.println(search(9));
    }
}
//查找数组的某一个元素然后返回其元素在数组内的下标